<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>模拟日历</title>
    <style>
        div{
            width: 800px;
            margin: 200px auto;
            color: red;
            text-align: center;
            font: 600 30px/30px "simsun";
        }
    </style>
</head>
<body>
<div></div>

<script>
    var date = new Date();
    var year = date.getFullYear();
    var month = date.getMonth();
    var hao = date.getDate();
    var week = date.getDay();
    //        console.log(year+" "+month+" "+hao+" "+week);
    var arr = ["星期日","星期一","星期二","星期三","星期四","星期五","星期六"];
    var div = document.getElementsByTagName("div")[0];
    div.innerText = "今天是："+year+"年"+(month+1)+"月"+hao+"日 "+arr[week];

</script>
</body>
</html>